#!/usr/bin/env python

from optparse import OptionParser
from utils.log.loginstaller import gLogInstaller

def main():
    argParser = OptionParser('testing script')
    argParser.add_option(
        '-v', '--verbose',
        action='count', dest='verboseLevel',
        help='noisy level of logging'
    )

    (options, args) = argParser.parse_args()
    log = gLogInstaller.install(
        application='test',
        logWarn=options.verboseLevel >= 1,
        logInfo=options.verboseLevel >= 2,
        logDebug=options.verboseLevel >= 3
    )

    log.fatal('test')
    log.error('test')
    log.warn('test')
    log.info('test')
    log.debug('test')

if __name__ == '__main__':
    main()